﻿using System;


namespace HAVNet.Intros.AST
{
    public class ASTEmbStmtUsing : ASTEmbStmt
    {
        public ASTResourceAcquisition   resourceAc  { get; set; }
        public ASTStatement             statement   { get; set; }

        public override string ToString ()
        {
            return
                "using (" + resourceAc.ToString() + ")" +
                Environment.NewLine +
                statement.ToString ();
        }
    }
}
